import request from '@/utils/request'

export function getProject(query) {
  return request({
    url: '/project/projectInfo',
    method: 'get',
    params: query
  })
}

export function getDevice(query) {
  return request({
    url: '/device/online/' + query,
    method: 'get',
  })
}

export function getDeviceInfo(params) {
  return request({
    url: '/device/deviceData',
    method: 'get',
    params
  })
}

export function getRunRate(params) {
  return request({
    url: '/file/runLog/runRate',
    method: 'get',
    params
  })
}

export function getRunRateColumnar(params) {
  return request({
    url: '/file/runLog/runRateColumnar',
    method: 'get',
    params
  })
}

export function getWarningList(params) {
  return request({
    url: '/earlyWarning/warningList',
    method: 'get',
    params
  })
}

export function getQuickList(params) {
  return request({
    url: '/earlyWarning/quickList',
    method: 'get',
    params
  })
}

